<?
/**
* Copyright (c) 2002-2007 BioWare Corp.
* http://www.bigdaddymonitor.org
*
* This file is part of the BigDaddy Monitoring
* program. It is free software distributed under
* the terms of the BSD License. It is ditributed
* in the hopes that it will be useful, but
* WITHOUT ANY WARRANTY; without event the implied
* warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE.
*
* The BSD License is available from:
* http://www.opensource.org/licenses/bsd-license.php
**/
?>
<p><?=$pageParams["title"];?></p>

<form name="formname" action="<?=$_SERVER["PHP_SELF"];?>" method="post">
<table border="0" cellpadding = "3">

<?
if ($bIsEdit == true)
{
    ?>
<tr>
<td><b>Username</b></td>
<td><b><?=$aUserInfo["username"];?></b></td>
</tr>
<?
}
else
{
?>
<tr>
<td><b>Username</b></td>
<td><b><input type="text" name="username" value="" size="40"></b></td>
</tr>
<?
}
?>

<tr>
<td><b>First Name</b></td>
<td><b><input type="text" name="firstname" value="<?=htmlspecialchars($aUserInfo["firstname"]);?>" size=40></b></td>
</tr>

<tr>
<td><b>Last Name</b></td>
<td><b><input type="text" name="lastname" value="<?=htmlspecialchars($aUserInfo["lastname"]);?>" size=40></b></td>
</tr>

<tr>
<td><b>Location</b></td>
<td><b><input type="text" name="location" value="<?=htmlspecialchars($aUserInfo["location"]);?>" size=40></b></td>
</tr>

<tr>
<td><b>Position</b></td>
<td><b><input type="text" name="position" value="<?=htmlspecialchars($aUserInfo["position"]);?>" size=40></b></td>
</tr>

</table>

<?
if ($bIsEdit == false)
{
    ?>
    <input type="hidden" name="action" value="addusertodb">
    <?
}
else
{
    ?>
    <input type="hidden" name="action" value="editusertodb">
    <input type="hidden" name="username" value="<?=$aUserInfo["username"];?>">
    <?
}
?>
<input type="submit" name="submit" value = "Submit">

